package com.example.waitersoriginal;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class DetalhesFragment extends Fragment{
    //TextView text;
	TextView nomeEntrada,descrEntrada,valorEntrada,nmArm,dsArm,vlArm;
	//String nm,vl;
	
    @Override
    public View onCreateView(LayoutInflater inflater,ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.detalhes_fragment, container, false);
        
        nomeEntrada= (TextView) view.findViewById(R.id.textView1);
        descrEntrada= (TextView)view.findViewById(R.id.textView2);
        valorEntrada= (TextView)view.findViewById(R.id.textView3);
        
        return view;
    }
    public void change(String txt, String txt1, String txt2){
    //public void change(String txt){
        nomeEntrada.setText(txt);
        descrEntrada.setText(txt1);
        valorEntrada.setText(txt2);
        
                      
    }
    
    //public void btnAddCart(String nm, String vl)
   // {
    	//ArrayList<HashMap<String,TextView>> pedidos = new ArrayList<HashMap<String, TextView>>();
    	
    	//HashMap<String, TextView> pedido = new HashMap<String, TextView>();
    	
		//pedido.put("pedido", nomeEntrada);
		//pedido.put("quantidade", valorEntrada);
		
		//String[] from = new String[]{"pedido","quantidade"};
		
	//	showToastMessage(nm);
		
		//int layout = R.layout.lista_pedidos_model;
				
		//int[] to = new int[]{R.id.textView2,R.id.textView3};	
		
		//ListView lista = (ListView) EntradaActivityV03.view2.findViewById(R.id.listView1);
	
		//lista.setAdapter(new SimpleAdapter(this,pedidos, layout, from, to));
    	
  //  }
}
